-- GENERATED SPELL FOR [Skadir Mariner] --


function spell0_25523(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_25523', 30331, 1)
end

function spell1_25523(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25523', 572, 1)
end

function Sorts_25523(pUnit, Event)
local choix_sorts_25523 = math.random(0, 1)
if choix_sorts_25523 == 0 then
pUnit:RegisterEvent('spell0_25523', 1, 1)
end
if choix_sorts_25523 == 1 then
pUnit:RegisterEvent('spell1_25523', 1, 1)
end
end

function mob25523_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25523', math.random(1500, 3000), 1)
end

function mob25523_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25523_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25523_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25523, 1, 'mob25523_Action')
RegisterUnitEvent(25523, 2, 'mob25523_Leave')
RegisterUnitEvent(25523, 3, 'mob25523_Kill')
RegisterUnitEvent(25523, 4, 'mob25523_Die')
